package org.lwd.datalink.mapper;

import org.lwd.datalink.domain.task.TaskShadowInfo;

/**
 * 影子任务 Dao 接口
 *
 * @Author: weidong.lin
 * @Date: create in 2024/4/2 14:06
 */
public interface TaskShadowMapper {

    TaskShadowInfo getTaskShadowInExecutingState(Long taskId);

    TaskShadowInfo getMinTaskShadowInInitState(Long taskId);

    void updateTaskShadowState(TaskShadowInfo taskShadow);

    long discardTaskShadow(long id);
}
